package constant

type BackendLoginRequest struct {
	Username string `json:"username" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type BackendCategoryRequest struct {
	Id          int    `json:"id"`
	ParentId    int    `json:"parent_id"`
	Name        string `json:"name" validate:"required"`
	Sort        int    `json:"sort"`
	Online      int    `json:"online"`
	Picture     string `json:"picture" validate:"required"`
	Description string `json:"description"`
}

type BackendBannerRequest struct {
	Id           int    `json:"id"`
	Picture      string `json:"picture" validate:"required"`
	Name         string `json:"name" validate:"required"`
	BusinessType int    `json:"businessType"`
	BusinessId   int    `json:"businessId"`
	Status       int    `json:"status"`
}

type BackendGridCategoryRequest struct {
	Id         int    `json:"id"`
	Name       string `json:"name" validate:"required"`
	CategoryId int    `json:"category_id" validate:"required"`
	Picture    string `json:"picture" validate:"required"`
	Del        int    `json:"del"`
}
